<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2024-9-22
  Time: 16:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>User List</title>
    <style>
        .result-tab {
            border-collapse: collapse;
            border: 1px solid #ddd;
            width: 100%;
        }

        .result-tab th {
            font-weight: normal;
            font-size: 15px;
            text-align: center;
            /*background: url(../images/tab-thbg.png) #f9f9f9 0 bottom repeat-x;*/
        }

        .result-tab th,.result-tab td {
            padding: 5px;
            border-bottom: 1px solid #ddd;
            border-right: 1px solid #e1e1e1;
        }

        .result-tab tr {
            line-height: 35px;
        }

        .result-tab th.tc,.result-tab td.tc {
            text-align: center;
        }

        .result-tab tr:nth-child(odd) {
            background: #f9f9f9;
        }

        .result-tab tr:hover {
            background: #f1f1f1;
        }

        .result-tab tr.even-tr {
            background: #e9fff2;
        }
    </style>
</head>
<body>
<div class="result-content">
    <table class="result-tab">
        <tbody>
        <tr>
            <th>用户名</th>
            <th>密码</th>
        </tr>
        <c:forEach items="${userList}" var="user">
            <tr>
                <td>${user.username}</td>
                <td>${user.password}</td>
            </tr>
        </c:forEach>
    </table>
</div>
</body>
</html>